<template>
  <div class="my-domain-table-tool">
    <div class="btn" @click="clickEvent(0)">修改</div>
    <div v-show="status === 2" class="btn" @click="clickEvent(1)">启用</div>
    <div v-show="status === 1" class="btn" @click="clickEvent(2)">暂停</div>
    <div class="btn" @click="clickEvent(3)">删除</div>
  </div>
</template>
<script>
export default {
  name: "myDomainTableTool",
  props: {
    status: {
      type: Number,
      default: 1,
    },
  },
  data() {
    return {};
  },
  methods: {
    clickEvent(val) {
      this.$emit("clickEvent", val);
    },
    dropdownEvent(val) {
      this.$emit("clickEvent", val);
    },
  },
};
</script>
<style lang="scss" scoped>
.my-domain-table-tool {
  display: flex;
  justify-content: space-between;
  align-items: center;
  .btn {
    cursor: pointer;
    color: $mainColor;
  }
}
</style>
